package com.starblink.search.category.ui.newlist


object CategoryConfig {

    private var categoryId: String = "0"

    private var changeListener: CategoryIdChangeListener? = null


    interface CategoryIdChangeListener {
        fun change(id: String)
    }

    fun setCategoryIdChangeListener(changeListener: CategoryIdChangeListener) {
        this.changeListener = changeListener
    }


    fun setCategoryId(id: String) {
        categoryId = id
        changeListener?.change(categoryId)
    }

    fun getCategoryId(): String {
        return categoryId
    }

    fun initData(){
        categoryId ="0"
    }

}